-- GENERATED SPELL FOR [Winterskorn Oracle] --


function spell0_23669(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(43083,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23669', 6000, 1)
end

function Sorts_23669(pUnit, Event)
local choix_sorts_23669 = math.random(0, 0)
if choix_sorts_23669 == 0 then
pUnit:RegisterEvent('spell0_23669', 1, 1)
end
end

function mob23669_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23669', math.random(1500, 3000), 1)
end

function mob23669_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23669_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23669_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23669, 1, 'mob23669_Action')
RegisterUnitEvent(23669, 2, 'mob23669_Leave')
RegisterUnitEvent(23669, 3, 'mob23669_Kill')
RegisterUnitEvent(23669, 4, 'mob23669_Die')
